import request from "../../utils/request.js";

/**
 * 作业调度列表条件查询
 * @param {*} query 
 * @returns 
 */
export const getSchedulingList_Api = (query) => request.get("/job/scheduling/list", {
    params: query
});

/**
 * 添加作业
 * @param {*} query 
 * @returns 
 */
export const addScheduling_Api = (data) => request.post("/job/scheduling/add", data);

/**
 * 删除作业
 * @param {*} query 
 * @returns 
 */
export const delScheduling_Api = (query) => request.delete("/job/scheduling/deleteJob", {
    params: query
});

/**
 * 删除作业
 * @param {*} query 
 * @returns 
 */
export const editScheduling_Api = (data) => request.post("/job/scheduling/edit", data);

/**
 * 调度执行列表
 * @param {*} query 
 * @returns 
 */
export const gerScheduedList_Api = (query) => request.get("/job/scheduling/finishList", {
    params: query
});

/**
 * 调度执行列表
 * @param {*} query 
 * @returns 
 */
export const getSchedulingDetail_Api = (query) => request.get("/job/scheduling/detail", {
    params: query
});
